package com.pox.guli.service.vod.service;



import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;

/**
 * @Author PoX21s
 * @Date: 2022/1/5 13:23
 * @Version 1.0
 */

public interface VodVideoService {

    /**
     * 视频上传
     * @param file 文件流
     * @param originalFilename 文件原名
     * @return java.lang.String
     */
    String uploadVideo(InputStream file, String originalFilename);

    /**
     * 根据ID删除视频
     * @param videoId 视频id
     */
    void removeVideo(String videoId) throws ClientException;

    /**
     * 获取播放凭证
     * @param videoSourceId 视频地址
     * @return java.lang.String
     */
    String getPlayAuth(String videoSourceId) throws ClientException;
}
